/* 年鉴文化页面特定样式 */

/* 中部内容区域 */
.content-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 400px;
    background-image: url("../assets/bg-top-red.png"), url("../assets/bg-bottom-red.png");
    background-position: left top, right bottom;
    /* 分别控制位置 */
    background-repeat: no-repeat, repeat-x;
    /* 分别控制重复方式 */
    background-size: auto, auto;
}

.content-container .bar {
    width: 100%;
    height: 60px;
    background: rgba(255, 255, 255, 0.4)
}

.content-wrapper {
    width: 68%;
    margin-top: 30px;
    margin-bottom: 20px;
    display: flex;
}

/* 左侧树形菜单 */
.tree-container {
    width: 250px;
    background-color: #fff;
    padding: 0px;
}

.tree-menu {
    width: 250px;
    list-style: none;
}

.tree-item {
    padding: 10px;
    margin-bottom: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    color: #555555;
    transition: all 0.3s;
    background-color: #F1F1F1;
}

/* 公众服务节点特殊样式 */
.tree-item[data-tree="public-service"] {
    background-color: #BD1A2D;
    color: white;
}

.tree-item:hover[data-tree="public-service"] {
    background-color: #BD1A2D;
    color: #fff;
}

.tree-item .tree-arrow {
    font-size: 12px;
}

.tree-item:hover {
    color: #BD1A2D;
}

.tree-item:hover .tree-arrow {
    color: #BD1A2D;
}

.tree-item.selected {
    color: #BD1A2D;
}

.tree-text {
    flex-grow: 1;
}

/* 右侧内容区域 */
.right-content {
    flex: 1;
    margin-left: 20px;
    margin-top: 20px;
    background-color: #fff;
}

/* 右侧内容区域 - 网格布局 */
.right-content-1 {
    height: 600px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 15px;
}

/* 右侧内容区域 - Tab布局 */
.right-content-2 {
    height: 600px;
}

/* 右侧列表区域 */
.list-container {
    flex-grow: 1;
    padding: 20px;
    padding-top: 10px;
    margin-left: 20px;
    background-color: #fff;
}

#current-menu {
    height: 32px;
    border-bottom: 1px solid #F1F1F1;
}

#current-menu .title {
    width: fit-content;
    height: 30px;
    line-height: 30px;
}

#current-menu .title::after {
    content: "";
    display: block;
    width: 100%;
    height: 2px;
    background-color: #BD1A2D;
}

/* 列表内容样式 */
.list-content {
    margin-top: 10px;
}

/* 动态列表样式 */
.dynamic-list {
    list-style: none;
    padding: 0;
}

.dynamic-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.dynamic-item:last-child {
    border-bottom: none;
}

.dynamic-item .title {
    font-size: 16px;
    color: #333;
    cursor: pointer;
    flex-grow: 1;
    margin-right: 20px;
}

.dynamic-item .title:hover {
    color: #BD1A2D;
}

.dynamic-item .date {
    font-size: 14px;
    color: #999;
    min-width: 80px;
    text-align: right;
}

.right-content .grid-item {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
}

.right-content .grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* Tab 相关样式 */
.tab-container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Tab 导航 */
.tab-nav {
    display: flex;
    border-bottom: 1px solid #ddd;
    margin-bottom: 20px;
}

.tab-item {
    padding: 12px 24px;
    cursor: pointer;
    color: #666;
    font-size: 16px;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.tab-item:hover {
    color: #e00;
}

.tab-item.active {
    color: #e00;
    border-bottom: 2px solid #e00;
    font-weight: bold;
}

/* Tab 内容 */
.tab-content {
    flex: 1;
    overflow: hidden;
}

.tab-pane {
    display: none;
    height: 100%;
    overflow-y: auto;
}

.tab-pane.active {
    display: block;
}

/* Tab 内容标题 */
.tab-content-header {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.tab-content-header h3 {
    font-size: 18px;
    color: #333;
    margin: 0;
}

/* Tab 列表 */
.tab-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tab-list-item {
    padding: 15px;
    border: 1px solid #f0f0f0;
    border-radius: 4px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.tab-list-item:hover {
    border-color: #e00;
    background-color: #f9f9f9;
}

.tab-list-title {
    font-size: 16px;
    color: #333;
    margin-bottom: 8px;
    font-weight: 500;
}

.tab-list-info {
    display: flex;
    gap: 20px;
    font-size: 14px;
    color: #666;
}

.tab-list-info span {
    display: inline-block;
}

.right-content .grid-item:hover img {
    transform: scale(1.05);
}

.right-content .grid-item .caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 10px;
    text-align: center;
    font-size: 14px;
}

/* 分页样式 */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
    gap: 10px;
}

.pagination button {
    width: 32px;
    height: 32px;
    background: #FFFFFF;
    border-radius: 5px;
    border: 1px solid #D9D9D9;
    cursor: pointer;
    color: #7D442E;
    transition: background-color 0.3s;
}

.pagination .page-item {
    display: inline-flex;
    width: 32px;
    height: 32px;
    line-height: 32px;
    align-items: center;
    justify-content: center;
    background: #FFFFFF;
    border-radius: 5px;
    border: 1px solid #D9D9D9;
    cursor: pointer;
    font-weight: 500;
    color: #666;
    margin-right: 8px;
    transition: background-color 0.3s;
}

.pagination .page-item:hover {
    background-color: #fff;
    color: #D61618;
    border-color: #D61618;
}

.pagination-select {
    width: 70px;
}

.pagination .slide {
    display: inline-flex;
    width: 32px;
    height: 32px;
    line-height: 32px;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
}

.pagination button:hover {
    background-color: #fff;
    color: #D61618;
    border-color: #D61618;
}

.pagination button:disabled {
    background-color: #f9f9f9;
    cursor: not-allowed;
}

.custom-select {
    position: relative;
    display: inline-block;
}

.custom-select select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    appearance: none;
    -moz-appearance: none;
    -webkit-appearance: none;
}

.custom-select .arrow {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #333;
    pointer-events: none;
}

#page-info {
    font-weight: bold;
}

#page-input {
    width: 80px;
    padding: 7px;
    border: 1px solid #ddd;
    text-align: center;
    border-radius: 5px;
}

#page-size {
    width: 70px;
    height: 32px;
    padding: 5px 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

/* 下方信息页样式已移至common.css */

/* 响应式设计 */
@media (max-width: 768px) {
    .content-wrapper {
        flex-direction: column;
        width: 95%;
    }
    
    .tree-container {
        width: 100%;
        margin-bottom: 20px;
    }
    
    .inquiry-form {
        width: 95%;
    }
}